package com.farm.controller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.farm.service.IntroduceService;
import com.farm.utils_all.HUtil;

@Controller
public class IntroduceController {
	@Autowired
	private IntroduceService introduceService;
	
	//查询老师和学院的介绍
	@ResponseBody
	@RequestMapping("/selectIntroduce.do")
	public Map articleArray(@RequestParam Map<String,Object> map,HttpServletRequest request) {
		List<Map<String, Object>> selectIntroduce = introduceService.selectIntroduce(map);
		map.put("info", selectIntroduce);
		return map;
	} 
	//查询老师和学院的介绍
		@ResponseBody
		@RequestMapping("/selectIntroduceone.do")
		public Map selectone(@RequestParam Map<String,Object> map,HttpServletRequest request) {
			Map<String, Object> selectNameTel = introduceService.selectNameTel(map);
			return selectNameTel;
		} 

}
